﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Enums.h"
#include "../PlayerObject.h"

using namespace Server::MirDatabase;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class EvilMirBody : public MonsterObject
    {
    private:
        bool _dragonlink = false;
    public:
        bool getDragonLink() const;
        void setDragonLink(bool value);

    protected:
        bool getCanAttack() const override;
        bool getCanMove() const override;

        EvilMirBody(MonsterInfo *info);

    public:
        void Turn(MirDirection dir) override;

        bool Walk(MirDirection dir) override;

    protected:
        void ProcessRoam() override;

        void ProcessSearch() override;

    public:
        int Attacked(MonsterObject *attacker, int damage, DefenceType type = DefenceType::ACAgility) override;

        int Attacked(PlayerObject *attacker, int damage, DefenceType type = DefenceType::ACAgility, bool damageWeapon = true) override;
        int Struck(int damage, DefenceType type = DefenceType::ACAgility) override;
    };
}
